package cn.parus.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.sql.Timestamp;

/**
 * @Author: Axel
 * @Description: TODO 文件元数据
 **/
@Data
@TableName("file_metadata")
public class FileMetadata {
    @TableId(value = "file_id", type = IdType.ASSIGN_UUID)
    private String fileId;

    @TableField("file_name")
    private String fileName;

    @TableField("file_path")
    private String filePath;

    @TableField("file_size")
    private Long fileSize;

    @TableField("file_type")
    private String fileType;

    @TableField("is_directory")
    private Boolean isDirectory;

    @TableField("owner_id")
    private String ownerId;

    @TableField("hdfs_path")
    private String hdfsPath;

    @TableField("created_at")
    private Timestamp createdAt;

    @TableField("modified_at")
    private Timestamp modifiedAt;

    @TableField("is_shared")
    private Boolean isShared;

    @TableField("status")
    private String status;
}